import {HTTP} from "../utils/http-p";

class KindModel extends HTTP{
  getList(){
    return this.request({
      url:"/kind/list",
      method:"get"
    })
  }
  createKind(name){
    return this.request({
      url:'/kind/create',
      data:{name},
      method:'post'
    })
  }
  editKind(_id,name){
    return this.request({
      url:'/kind/edit',
      data:{_id,name},
      method:'post'
    })
  }

  deleteKind(_id){
    return this.request({
      url:'/kind/delete',
      data:{_id},
      method:'post'
    })
  }

}

export {KindModel}
